﻿using System.Collections.Generic;
using EnetaMvc.Core.Domain.Content;
using EnetaMvc.Infrastructure;

namespace EnetaMvc.Core.Repositories
{
    public interface IContentItemRepository
    {
        ContentItem GetContentItemById(long id);
        PagedResult<T> ListContentItems<T>(int page, int pageSize) where T : ContentItem;
        IList<T> ListPendingContentItems<T>(int rowLimit) where T : ContentItem;
        IList<T> ListContentItemsByTagId<T>(long tagId) where T : ContentItem;
        void DeleteContentItemsByTagId(long tagId);
    }
}
